#pragma once

#include <iostream>


#define Conv(v) (struct sockaddr *)(v)
#define Die(n)   \
    do           \
    {            \
        exit(n); \
    } while (0)

enum 
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    SENDTO_ERR,
    RECV_ERR
};